package pb

import (
	"context"
	"github.com/gogf/gf/v2/util/gconv"
	"go_end/internal/service"

	"go_end/api/pb/v1"
)

func (c *ControllerV1) GetPbUser(ctx context.Context, req *v1.GetPbUserReq) (res *v1.GetPbUserRes, err error) {
	res = new(v1.GetPbUserRes)
	user := service.Pb().GetPbUser(ctx)
	err = gconv.Scan(&user, &res)
	return res, err
}
